package com.snail.controller;

import com.snail.model.pojo.SysTag;
import com.snail.response.BaseResponse;
import com.snail.response.ResultUtils;
import com.snail.service.SysTagService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Monica
 * @description
 * @date 2025/7/26 12:13
 */
@RestController
@RequestMapping("/tag")
@AllArgsConstructor
public class SysTagController {
    @Autowired
    private SysTagService sysTagService;

    @GetMapping("/getTagList")
    public BaseResponse<List<SysTag>> getTagList() {
        List<SysTag> list = sysTagService.list();
        return ResultUtils.success(list);
    }
}
